package org.grow.erp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "Student")
public class Student {
    @TableId(value = "stuId", type = IdType.INPUT)
    private Integer stuId;

    @TableField(value = "stuName")
    private String stuName;

    private List<Hobby> hobbies;

}